package org.example.judge.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.example.judge_pojo.ProblemTag;
import org.example.judge_pojo.Tag;

import java.util.List;

public interface ProblemTagMapper extends BaseMapper<ProblemTag> {
    @Select("select tb_tag.* from tb_tag,tb_problem_tag as pt where tb_tag.id = pt.tag_id and pt.problem_id=#{problemId}")
    List<Tag> listTagsByProblem(String problemId);
}
